#!/bin/bash
rm -rf output/
cd common/
fisp release --pack --md5 --optimize -d ../output
cd ../home/
fisp release --pack --md5 --optimize -d ../output
cd ../iphone/
fisp release --md5  -o -d  ../output
cd ../index/
fisp release -m  -p  -o -d  ../output
cd ../accident/
fisp release  -d  ../output
cd ../user/
fisp release -m -o -d  ../output
cd ../account/
fisp release -m -o -d  ../output
cd ../activity/
fisp release -m -o -d  ../output
cd ../wap_activity/
fisp release -m -o -d  ../output
cd ../wap_common/
fisp release -m -p -o -d ../output
cd ../wap_main/
fisp release -m -o -d ../output
cd ../wap_share/
fisp release -m -o -d ../output
cd ../wap_index/
fisp release -m -o -d ../output
cd ../wap_user/
fisp release -m -o -d ../output
cd ../output/
pwd
if [ -d webroot ];then
	'exist webroot'
else
    mkdir webroot
fi
mv static webroot/static
#mv plugin customer_plugin
#mkdir -p "app/zhenrongbao/protected/extensions/smarty"
#mv customer_plugin "app/zhenrongbao/protected/extensions/smarty"
#rm -rf customer_plugin
rm -rf server-conf
mkdir conf
mv config conf/smarty-conf
